import request from '@/utils/request'
import { getServicePath } from '@/api/baseUrlConfig'
const servicePath = getServicePath()

// 查询历史党员列表
export function queryByCondition (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + '/historical-party-member/queryByCondition',
    method: 'get',
    params: data
  })
}
// 删除历史党员
export function deleteById (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/historical-party-member/deleteById/${data.id}`,
    method: 'get',
    params: data
  })
}
// 新增历史党员
export function add (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + '/historical-party-member/add',
    method: 'post',
    data
  })
}
// 编辑历史党员
export function edit (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + '/historical-party-member/edit',
    method: 'post',
    data
  })
}

// 查询党员列表
export function queryPersonList (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/party-member-info-mgmt/queryList`,
    method: 'get',
    params: data
  })
}
